package com.hlwxy.ssm.cxf.impl;

import com.hlwxy.ssm.cxf.StudentService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

@Component
@WebService(endpointInterface = "com.hlwxy.ssm.cxf.StudentService",targetNamespace = "http://service.com/")
public class StudentServiceImpl implements StudentService {

    public void sayHello() {
        System.out.println("webServices 静态调用！");
    }

    public String sayHello2(String name) {
        System.out.println("webServices 动态调用！  "+name);
        return "返回数据";
    }
}
